/*
** ptr.h for irc in /home/billey_b/projet/my_irc/my-irc-a
** 
** Made by Bastien Billey
** Login   <billey_b@epitech.net>
** 
** Started on  Wed Apr 18 12:52:51 2012 Bastien Billey
** Last update Wed Apr 18 12:52:52 2012 Bastien Billey
*/

#ifndef __PTR_HH__
#define __PTR_HH__

#include "client.h"

typedef void (*func)(t_client *);

typedef struct s_ptr
{
  char  *func_name;
  func ptr_func;
}               t_ptr;

static t_ptr ptr_tab[] =
  {
    {"/server", serveur},
    {"/nick", nickname},
    {"/list", list},
    {"/join", join},
    {"/part", part},
    {"/users", users},
    {"/msg", msg},
    {"/send_file", send_file},
    {"/accept_file", accept_file},
    {"/help", help_cmd},
    {NULL, NULL}
  };

#endif
